# $Id: PKGBUILD 82884 2013-01-25 09:56:30Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>
# Contributor: Francois Charette <firmicus@gmx.net>

pkgname=perl-mail-box
pkgver=2.107
pkgrel=1
pkgdesc="Mail folder manager and MUA backend"
arch=(any)
url="http://search.cpan.org/dist/Mail-Box"
license=('GPL' 'PerlArtistic')
depends=('perl-timedate' 'perl-digest-hmac' 'perl-file-remove>=0.20'
	 'perl-io-stringy' 'perl-mime-types>=1.004' 'perl-mailtools'
	 'perl-object-realize-later>=0.14' 'perl-uri>=1.23' 'perl-user-identity>=0.90')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/M/MA/MARKOV/Mail-Box-$pkgver.tar.gz)
md5sums=('6df8b045f82a3cafc1df4e934f881a2d')

build() {
  cd  $srcdir/Mail-Box-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
  make install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
